home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2007 March
/
PCWorld_2007-03_cd.bin
/
komunikace
/
acehtml
/
acehtmlfreeware.exe
/
scriptdef
/
Cross Browser Print Button.sd
< prev
next >
Wrap
INI File
|
2006-09-13
|
1KB
|
42 lines
[SUBJECT]
Description=Cross-browser print button Script
ImageIndex=-1
Folder=Tools
[BODY_TEXT]
;<script language="JavaScript">
;
;/*
;This script is written by Eric (Webcrawl@usa.net)
;For full source code, installation instructions,
;100's more DHTML scripts, and Terms Of
;Use, visit dynamicdrive.com
;*/
;
;function printit(){
;if (NS) {
; window.print() ;
;} else {
; var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
;document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
; WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box WebBrowser1.outerHTML = "";
;}
;}
;</script>
;
;<script language="JavaScript">
;var NS = (navigator.appName == "Netscape");
;var VERSION = parseInt(navigator.appVersion);
;if (VERSION > 3) {
; document.write('<form><input type=button value="`caption`" name="Print" onClick="printit()"></form>');
;}
;</script>
[`caption`]
Kind=S
Value=Print this Page